#!/bin/bash
rm -rf /home/pi/iot-gateway/src
rm -rf /home/pi/iot-gateway/.cargo
rm -rf /home/pi/iot-gateway/config
rm -rf /home/pi/iot-gateway/Cargo.toml
rm -rf /home/pi/iot-gateway/*.sh
cp -rf /mnt/d/git/iot-gateway/src/ /home/pi/iot-gateway/
cp -rf /mnt/d/git/iot-gateway/.cargo/ /home/pi/iot-gateway/
cp -rf /mnt/d/git/iot-gateway/config/ /home/pi/iot-gateway/
cp -rf /mnt/d/git/iot-gateway/Cargo.toml /home/pi/iot-gateway/
cp -rf /mnt/d/git/iot-gateway/*.sh /home/pi/iot-gateway/
echo "cped files"